package me.uni.skyme.mvc;


import me.uni.skyme.pojo.ResultData;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
	
	@RequestMapping("index")
	public ResultData hello(String str) 
	{
		System.out.println("==========?");
		ResultData resultData=new ResultData();
		resultData.setCode(100);
		resultData.setMsg("hello:"+str);
		return resultData;
	}
	
	
	@RequestMapping("index2")
	public ResultData hello2(String str) 
	{
		System.out.println("==========?");
		ResultData resultData=new ResultData();
		resultData.setCode(100);
		resultData.setMsg("hello:"+str);
		return resultData;
	}
}
